\documentclass[12pt,spanish]{article}
\usepackage[spanish,activeacute]{babel}
\renewcommand\shorthandsspanish{}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr,a4wide,enumerate}
\usepackage{lastpage}
\usepackage{caratula}
\usepackage{float}
\usepackage{graphicx}
\usepackage{amsthm,amsmath,pxfonts,amssymb}
\usepackage[linesnumbered,ruled]{algorithm2e}

\setlength{\headheight}{16pt}
\pagestyle{fancy}
\lhead{Trabajo Práctico D}
\rhead{Eugenio Costa, Emiliano González, Lisandro Sebrié}
\cfoot{\thepage\ de \pageref{LastPage}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\theoremstyle{plain}
\newtheorem*{theorem}{Teorema}
\newtheorem*{lemma}{Lema}
\newtheorem*{proposition}{Proposición}
\newtheorem*{corollary}{Corolario}

\theoremstyle{definition}
\newtheorem*{definition}{Definición}

\dontprintsemicolon
\linesnumberedhidden
\nocaptionofalgo
\SetKwIF{If}{ElseIf}{Else}{si}{luego}{sino si}{sino}{fin si}
\SetKw{Return}{devolver}
\SetKwFor{For}{para}{hacer}{fin para}
\SetKwFor{ForEach}{para cada}{hacer}{fin para}
\SetKwFor{ForAll}{repetir}{veces}{fin repetir}
\SetKwFor{While}{mientras}{hacer}{fin mientras}
\SetKwFor{Rep}{repetir}{veces}{fin repetir}
\SetKwRepeat{Repeat}{repetir}{hasta que}
\SetKw{KwTo}{hasta}
\SetKwInOut{Input}{entrada}
\SetKwInOut{Output}{salida}

\DeclareMathOperator{\set}{set}
\DeclareMathOperator{\sgn}{sgn}
\newcommand{\nat}{\mathbb{N}}
\newcommand{\integ}{\mathbb{Z}}

\begin{document}

\materia{Problemas, Algoritmos y Programación}
\titulo{Trabajo Práctico D}
\grupo{Grupo 14}
\integrante{Eugenio Costa}{839/06}{tutecosta@gmail.com}
\integrante{Emiliano González}{426/06}{xjesse\_jamesx@hotmail.com}
\integrante{Lisandro Sebrié}{358/03}{lsebrie@hotmail.com}

\maketitle

\newpage
\section*{10625 -- ``GNU = GNU'sNotUnix''}
\input{gnu.tex}
\newpage
\section*{3928 -- ``Ballroom Lights''}
\input{bl.tex}
\newpage
\section*{3980 -- ``Walk''}
\input{walk.tex}
\newpage
\section*{4289 -- ``Disgruntled Judge''}
\input{dj.tex}

\newpage
\bibliographystyle{acm}
\bibliography{citas}

\end{document}
